using System;
using System.Collections;
using System.Collections.Generic;

using NHibernate.Data.Base;

namespace NHibernate.Data.Models
{
    public partial class Award : BusinessBase<long>
    {
        #region Declarations

		
		private long _institution = default(Int64);
		private long _introduction = default(Int64);
		private long _localName = default(Int64);
		private string _internationalName = String.Empty;
		
		
		
        #endregion

        #region Constructors

        public Award() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_institution);
			sb.Append(_introduction);
			sb.Append(_localName);
			sb.Append(_internationalName);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual long Institution
        {
            get { return _institution; }
			set
			{
				OnInstitutionChanging();
				_institution = value;
				OnInstitutionChanged();
			}
        }
		partial void OnInstitutionChanging();
		partial void OnInstitutionChanged();
		
		public virtual long Introduction
        {
            get { return _introduction; }
			set
			{
				OnIntroductionChanging();
				_introduction = value;
				OnIntroductionChanged();
			}
        }
		partial void OnIntroductionChanging();
		partial void OnIntroductionChanged();
		
		public virtual long LocalName
        {
            get { return _localName; }
			set
			{
				OnLocalNameChanging();
				_localName = value;
				OnLocalNameChanged();
			}
        }
		partial void OnLocalNameChanging();
		partial void OnLocalNameChanged();
		
		public virtual string InternationalName
        {
            get { return _internationalName; }
			set
			{
				OnInternationalNameChanging();
				_internationalName = value;
				OnInternationalNameChanged();
			}
        }
		partial void OnInternationalNameChanging();
		partial void OnInternationalNameChanged();
		
        #endregion
    }
}
